package global

import (
	"Walker/interfaces"
	"github.com/casbin/casbin/v2"
	"github.com/gomodule/redigo/redis"
	"github.com/spf13/viper"
	"go.uber.org/zap"
	"gorm.io/gorm"
)

var (
	BasePath      string //根目录
	StoragePath   string //日志目录
	HttpPath      string //项目目录
	ConfigValue   *viper.Viper
	DatabaseValue *viper.Viper
	//日志配置
	Logger     *zap.Logger
	InitLogger interfaces.Logger
	//数据库
	DB *gorm.DB
	//日期格式
	Date = "2006-01-02 15:04:05"
	//Casbin
	Enforcer *casbin.SyncedEnforcer
	//redis
	ConfigRedis *redis.Pool
)
